package com.ldu.dao.intf;

import com.ldu.dao.query.support.PageResult;
import com.ldu.dao.dataobject.CatelogDO;
import com.ldu.dao.query.CatelogQuery;

import java.util.List;


/**
 * Manager for Catelog.
 */
public interface CatelogManager {
    /**
     * query count by query condition.
     */
    int countByQuery(CatelogQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CatelogQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(CatelogDO record);

    /**
     * insert selective.
     */
    long insertSelective(CatelogDO record);

    /**
     * select by query condition.
     */
    List<CatelogDO> selectByQuery(CatelogQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<CatelogDO> selectByQueryWithPage(CatelogQuery query);

    /**
     * select by primary key.
     */
    CatelogDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( CatelogDO record,  CatelogQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(CatelogDO record, CatelogQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CatelogDO record);
}